class Parent {
	Parent() {
		System.out.println("Parent's Constructor without parameter");
	}

	Parent(boolean b) {
		System.out.println("Parent's Constructor with a boolean parameter");
	}

	public void method() {
		System.out.println("Parent's method()");
	}
}

class Son extends Parent {
	//补全本类定义
	Son(){
		super(true);//调用父类含有参数的构造方法
		System.out.println("Son's Constructor without parameter");
	}
	public void method() {
		System.out.println("Son's method()");
		super.method();//调用父类的method方法
	}
}
public class tiankong {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Son son = new Son();
		son.method();
	}

}
